<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="${pageContext.request.contextPath }/css/editTablestyles.css" />
<script type="text/javascript" src="${pageContext.request.contextPath }/webjars/jquery/1.12.4/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/listTable.js"></script>
<script type="text/javascript">
	$(function () {
		var addrow="${param.addRows}";
		if(addrow>0){
			alert("添加成功!");
		}
	})
</script>
</head>
<body>
	<form action="" method="post">
		<table id="ajaxtable">
			<tr>
				<td colspan="3" class="textarea"><h1>图书管理</h1></td>
			</tr>
			<tr>
				<td colspan="3" align="right"><a href="bookType.action?methodName=toAddBook">添加图书类型</a></td>
			</tr>
			<tr>
				<th width="35%">图书编号</th>
				<th width="45%">图书名称</th>
				<th width="20%">操作</th>
			</tr>
			<c:forEach items="${blist }" var="booktype">
			<tr>
				<td>${booktype.typeid }</td>
				<td>
				<a href="bookType.action?methodName=detailBooks&typeid=${booktype.typeid }">${booktype.typename }</a>
				</td>
				<td>
					<a href="bookType.action?methodName=detailBookType&typeid=${booktype.typename }">查询</a>
				</td>
			</tr>
			</c:forEach>
		</table>
	</form>
</body>
</html>